export interface GoodsDetailData {
  id: number
  title: string
  category_id: number
  cover: string
  rating: number
  sale_count: number
  review_count: number
  min_price: string
  min_oprice: string
  desc: string
  unit: string
  stock: number
  min_stock: number
  ischeck: number
  status: number
  stock_display: number
  express_id: number
  sku_type: number
  sku_value: Skuvalue
  content: string
  discount: number
  create_time: string
  update_time: string
  delete_time: null
  order: number
  types: Type[]
  goodsBanner: GoodsBanner[]
  goodsAttrs: any[]
  goodsSkus: any[]
  goodsSkusCard: GoodsSkusCard[]
}

export interface GoodsSkusCard {
  id: number
  goods_id: number
  name: string
  type: number
  order: number
  goodsSkusCardValue: GoodsSkusCardValue[]
}

export interface GoodsSkusCardValue {
  id: number
  goods_skus_card_id: number
  name: string
  value: string
  order: number
}

export interface GoodsBanner {
  id: number
  goods_id: number
  url: string
  create_time: string
  update_time: string
}

export interface Type {
  id: number
  name: string
  order: number
  status: number
  create_time: string
  update_time: string
  goods_type_values: Goodstypevalue[]
}

export interface Goodstypevalue {
  id: number
  name: string
  order: number
  type: string
  status: number
  default: null
  goods_type_id: number
}

export interface Skuvalue {
  oprice: number
  pprice: number
  cprice: number
  weight: number
  volume: number
}

// 商品列表
// export type GoodsTable = CommonResult<GoodTableData>

export interface GoodTableData {
  list: List[]
  totalCount: number
  cates: Cate[]
}

interface Cate {
  id: number
  name: string
  status: number
  create_time: string
  update_time: string
  category_id: number
  order: number
  level: number
}

interface List {
  id: number
  title: string
  category_id: number
  cover: null | string
  rating: number
  sale_count: number
  review_count: number
  min_price: string
  min_oprice: string
  desc: null | string
  unit: string
  stock: number
  min_stock: number
  ischeck: number
  status: number
  stock_display: number
  express_id: number
  sku_type: number
  sku_value: Skuvalue | null
  content: null | string
  discount: number
  create_time: string
  update_time: string
  delete_time: null
  order: number
  category: Category | null
  goods_banner: Goodsbanner[]
  goods_attrs: any[]
  goods_skus: (Goodsskus | Goodsskus2)[]
  goods_skus_card: (Goodsskuscard | Goodsskuscard2)[]
}

interface Goodsskuscard2 {
  id: number
  goods_id: number
  name: string
  type: number
  order: number
  goods_skus_card_value: any[]
}

interface Goodsskuscard {
  id: number
  goods_id: number
  name: string
  type: number
  order: number
  goods_skus_card_value: Goodsskuscardvalue[]
}

interface Goodsskuscardvalue {
  id: number
  goods_skus_card_id: number
  name: string
  value: string
  order: number
}

interface Goodsskus2 {
  id: number
  image: string
  pprice: string
  oprice: string
  cprice: string
  stock: number
  volume: number
  weight: number
  code: string
  goods_id: number
  skus: Skus2
}

interface Skus2 {
  '0': _02
  '1': _1
}

interface _02 {
  id: number | string
  goods_skus_card_id: number
  name: string
  value: string
  order: number
  text: string
}

interface Goodsskus {
  id: number
  image: string
  pprice: string
  oprice: string
  cprice: string
  stock: number
  volume: number
  weight: number
  code: string
  goods_id: number
  skus: Skus
}

interface Skus {
  '0': _0
  '1': _1
}

interface _1 {
  id: number
  goods_skus_card_id: number
  name: string
  value: string
  order: number
  text: string
}

interface _0 {
  goods_skus_card_id: string
  name: string
  value: string
  order: number
  id: string
  text: string
}

interface Goodsbanner {
  id: number
  goods_id: number
  url: string
  create_time: string
  update_time: string
}

interface Category {
  id: number
  name: string
  status: number
  create_time: string
  update_time: string
  category_id: number
  order: number
}
